<form id="userForm" method="post">
     <input type="hidden" name="id"/>
	<table class="formTable">
		<tr>
			<td class="table_left"><font color="red">*</font>用户名</td>
			<td>
				<input name="userName" id="userName" data-options="required:true,width: 200,validType:'UserName',prompt:'用户名'" type="text" class="easyui-textbox"></input> 
			</td>
			<td class="table_left"><font color="red">*</font>姓名</td>
			<td>
			<input name="realName" data-options="required:true,width: 200,prompt:'姓名'" type="text" class="easyui-textbox"/>
			</td>
		</tr>
		<tr>
			<td class="table_left"><font color="red">*</font>Email</td>
			<td><input type="text" name="email"  class="easyui-textbox" data-options="width: 200,validType:'Email',prompt:'用户邮箱'"/></td>
			<td class="table_left"><font color="red">*</font>电话</td>
			<td><input type="text" name="phone" class="easyui-textbox"  data-options="width: 200,validType:'Mobile',prompt:'联系电话'"/></td>
		</tr>
		<tr>
			<td class="table_left">部门</td>
			<td ><select name="deptId" id="dept"></select></td>
			<td class="table_left"><font color="red">*</font>角色</td>
			<td><select name="roleId" id="role"></select></td>
		</tr>
		<tr>
			<td class="table_left">性别</td>
			<td>
				<input type="radio" id="man" name="geneder" value="01"/><label for="man">男</label>
				<input type="radio" id="woman" name="geneder" value="02"/><label for="woman">女</label>
			</td>
			<td class="table_left">出生日期</td>
			<td><input name="birthday" type="text" class="easyui-datebox"  data-options="width: 200"/></td>
        </tr>
		<tr>
			<td class="table_left">描述</td>
			<td colspan="3">
				<input class="easyui-textbox" name="remark" data-options="multiline:true,prompt:'备注信息'" value="" style="width:250px;height:80px">
			</td>
		</tr>
	</table>
</form>
<script type="text/javascript">
JSmile.KEasy.initForm("#userForm","/sys_user/update"); 
$('#dept').combotree({
	method: 'get',
	editable:false,
	lines:true,
	width:200,
    url: JSmile.baseUrl+'/sys_dept/findAll',
    loadFilter:function(data,parent){
    	return JSmile.convert(data,{textField:"deptName"});
    },
});
$('#role').combotree({
	method: 'get',
	editable:false,
	lines:true,
	required: true,
	width:200,
    url: JSmile.baseUrl+'/sys_role/findAll',
    loadFilter:function(data,parent){
    	return JSmile.convert(data,{textField:"roleName"});
    },
});
</script>